package java8.lambda.demo03;

import java8.lambda.demo01.Apple;

import java.util.function.Supplier;

/**
 * @author ChangLiang
 * @date 2020/4/22
 */
public class AppleSupplier {

    public static Apple createApple(Supplier<Apple> supplier) {
        return supplier.get();
    }
}
